package pl.ericpol.stubs;

import java.util.Random;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

import pl.ericpol.environment.sensors.light_sensors.LightSensor;

public class LightSensorAdapterStub extends LightSensor{

	private Random random = new Random();
	private static Logger logger = LogManager.getLogger(LightSensorAdapterStub.class);

	
	public LightSensorAdapterStub(int id) {
		super(id);		
	}

	@Override
	public int getBrightness() {
		int brightness = random.nextInt(100);
		logger.info("Light sensor with id: "+getId()+" return: "+brightness);
		return brightness;
	}

}
